//TIP To <b>Run</b> code, press <shortcut actionId="Run"/> or
// click the <icon src="AllIcons.Actions.Execute"/> icon in the gutter.
public class Main {
    public static void main(String[] args) {


        IVisitor visitorLibary = new Canteen();
        IVisitor visitorDormitory = new Station();

        Emp demoEmp = new Emp();
        demoEmp.setStudentName("张三");
        demoEmp.setStudentNo("20220541");

        Boss demoBoss = new Boss();
        demoBoss.setTeacherName("李四");
        demoBoss.setTeacherNo("20230765");

        //访问食堂
        System.out.println(demoEmp.accept(visitorLibary));
        //进入岗位
        System.out.println(demoEmp.accept(visitorDormitory));

        //访问老师
        //发放校园卡
        System.out.println(demoBoss.accept(visitorLibary));
        //分配住宿
        System.out.println(demoBoss.accept(visitorDormitory));




    }
}